﻿<?php
/* @var $this BilletincidentController */
/* @var $model BILLETINCIDENT */

$this->breadcrumbs=array(
	'Billetincidents'=>array('index'),
	$model->ID_BILLET_INCIDENT,
);

echo'<h1>Détails de l\'incident n°'.$model->ID_BILLET_INCIDENT.'</h1>';


$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'ID_BILLET_INCIDENT',
		array(
            'label'=>'Poste',
            'value'=>CHtml::encode($nPoste)),
		array(
            'label'=>'Emetteur',
            'value'=>CHtml::encode($nEmetteur)),
		array(
            'label'=>'Problème',
            'value'=>CHtml::encode($nProbleme)),
		'DESCRIPTION_PROBLEME',
		'URGENCE',
		'DATE_OUVERTURE',
		'DATE_FIN_PREVUE',
		'PIECE_JOINTE',
		array(
            'label'=>'Etat',
            'value'=>CHtml::encode($etat)),
	),
)); 
if($role==3 || $role==4) 
{
	echo CHtml::button('Rediriger', array('submit' => 'index.php?r=affectation/create&id='.$model->ID_BILLET_INCIDENT));
	echo CHtml::button('Clore', array('submit' => 'index.php?r=billetIncident/clore&id='.$model->ID_BILLET_INCIDENT));
}
?>
